package com.ruoyi.basebill.mapper;

import java.util.List;
import com.ruoyi.basebill.domain.OmsSumpurinwarehsbill;
import com.ruoyi.basebill.domain.OmsSumpurinwarehsbillentry;

/**
 * 汇总采购入库单Mapper接口
 * 
 * @author wenyixiong
 * @date 2023-02-18
 */
public interface OmsSumpurinwarehsbillMapper 
{
    /**
     * 查询汇总采购入库单
     * 
     * @param id 汇总采购入库单主键
     * @return 汇总采购入库单
     */
    public OmsSumpurinwarehsbill selectOmsSumpurinwarehsbillById(Long id);

    /**
     * 查询汇总采购入库单列表
     * 
     * @param omsSumpurinwarehsbill 汇总采购入库单
     * @return 汇总采购入库单集合
     */
    public List<OmsSumpurinwarehsbill> selectOmsSumpurinwarehsbillList(OmsSumpurinwarehsbill omsSumpurinwarehsbill);

    public List<OmsSumpurinwarehsbill> selectOmsSumpurinwarehsbillDetailList(OmsSumpurinwarehsbill omsSumpurinwarehsbill);


    /**
     * 新增汇总采购入库单
     * 
     * @param omsSumpurinwarehsbill 汇总采购入库单
     * @return 结果
     */
    public int insertOmsSumpurinwarehsbill(OmsSumpurinwarehsbill omsSumpurinwarehsbill);

    /**
     * 修改汇总采购入库单
     * 
     * @param omsSumpurinwarehsbill 汇总采购入库单
     * @return 结果
     */
    public int updateOmsSumpurinwarehsbill(OmsSumpurinwarehsbill omsSumpurinwarehsbill);

    /**
     * 删除汇总采购入库单
     * 
     * @param id 汇总采购入库单主键
     * @return 结果
     */
    public int deleteOmsSumpurinwarehsbillById(Long id);

    /**
     * 批量删除汇总采购入库单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOmsSumpurinwarehsbillByIds(Long[] ids);

    /**
     * 批量删除汇总采购入库单明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOmsSumpurinwarehsbillentryByParentids(Long[] ids);
    
    /**
     * 批量新增汇总采购入库单明细
     * 
     * @param omsSumpurinwarehsbillentryList 汇总采购入库单明细列表
     * @return 结果
     */
    public int batchOmsSumpurinwarehsbillentry(List<OmsSumpurinwarehsbillentry> omsSumpurinwarehsbillentryList);
    

    /**
     * 通过汇总采购入库单主键删除汇总采购入库单明细信息
     * 
     * @param id 汇总采购入库单ID
     * @return 结果
     */
    public int deleteOmsSumpurinwarehsbillentryByParentid(Long id);

    /**
     * 查询是否推送过EAS的汇总采购入库单数据
     * @param isTrans
     * @return
     */
    public List<OmsSumpurinwarehsbill> selectPushEASSumPurinwarehsbillList(int isTrans);
}
